<template>
	<view style='padding:40px 10px;'>
		<view style='text-align: center;width:100%;margin:auto'>
			<img :src='src' style='width:360px;height:auto;' mode='widthFix' />
		</view>
		<view style='color:#909399;text-align: center;'>请使用微信扫码</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: '',
			}
		},
		onShow() {
		},
		onLoad(){
			this.request.get(`api/user`).then((res) => {
				console.log(res.data)
				this.src = `${getApp().globalData.apiBase}qr-code/mini-program?page=pages/index/index&scene=${res.data.id}`
			})
		},
		methods: {
			
		}
	}
</script>

<style>

</style>